package com.yw.service.Impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yw.codeManageInfo.domain.CodeConfiguration;

import com.yw.mapper.CodeConfigurationMapper;
import com.yw.service.CodeConfigurationService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CodeConfigurationServiceImpl extends ServiceImpl<CodeConfigurationMapper, CodeConfiguration>
                                            implements CodeConfigurationService {

    @Override
    public List<CodeConfiguration> listByCodeId(Integer codeId) {
        LambdaQueryWrapper<CodeConfiguration> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(CodeConfiguration::getCodeId,codeId);
        List<CodeConfiguration> list = this.list(wrapper);
        return list;
    }


}
